//
//  EVEAPIDownloaderRequest.m
//  EVE Mac Suite
//
//  Created by Vadim Lozko on 2/9/09.
//  Copyright 2009 __Vadim__CompanyName__. All rights reserved.
//

#import "EVEAPIDownloaderRequest.h"


@implementation EVEAPIDownloaderRequest

+(EVEAPIDownloaderRequest*)requestWithType:(NSString*)type info:(NSDictionary*)info handler:(id)aHandler
{
	return [[[EVEAPIDownloaderRequest alloc] initWithType:type info:info handler:aHandler] autorelease];
}

-(id)initWithType:(NSString*)type info:(NSDictionary*)info  handler:(id)aHandler
{
	if(self = [super init]);
	{
		requestType = [type retain];
		requestInfo = [info retain];
		handler = aHandler;
	}
	return self;
}

-(void)dealloc
{
	[requestType release];
	[requestInfo release];
	[super dealloc];
}

-(NSString*)type
{
	return requestType;
}
-(NSDictionary*)info
{
	return requestInfo;
}

-(NSString*)description
{
	return [self type];
}

-(id)handler
{
	return handler;
}

@end
